/*
 * @Author: xuyunke xyk18697347312@163.com
 * @Date: 2024-11-22 14:32:11
 * @LastEditors: xuyunke xyk18697347312@163.com
 * @LastEditTime: 2024-11-26 15:25:05
 * @FilePath: \ruoyi\RuoYi-GW-Vue\src\api\druid\url.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询接口调用日志记录列表
// export function getUrl(data) {
//   return request({
//     url: '/druid/weburi.json',
//     method: 'POST',
//     data: data
//   })
// }
export function getUrl(query) {
  return request({
    url: '/monitor/druid/uri',
    method: 'get',
    params: query
  })
}
// 查询接口调用日志记录详细
export function getLog(id) {
  return request({
    url: '/monitor/callLog/' + id,
    method: 'get'
  })
}

// 新增接口调用日志记录
export function addLog(data) {
  return request({
    url: '/monitor/callLog',
    method: 'post',
    data: data
  })
}

// 修改接口调用日志记录
export function updateLog(data) {
  return request({
    url: '/monitor/callLog',
    method: 'put',
    data: data
  })
}

// 删除接口调用日志记录
export function delLog(id) {
  return request({
    url: '/monitor/callLog/' + id,
    method: 'delete'
  })
}
